<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>  
    <link rel="stylesheet" href="/Public/css/pintuer.css">
    <link rel="stylesheet" href="/Public/css/admin.css">
    <script src="/Public/js/jquery.js"></script>
	<script type="text/javascript">
		window.onload=function(){
			 var power=document.getElementById("power").value;
			 if(power == 1){
				document.getElementById("important").style.display="none";
				document.getElementById("important1").style.display="none";
				document.getElementById("important2").style.display="none";
				document.getElementById("score_add").style.display="none";
				document.getElementById("score_shopadd").style.display="none";
				
			 }
		}
  </script> 
</head>
<body style="background-color:#f2f9fd;">
<input type="hidden" class="input w50" value="<?php echo $_SESSION['power'];?>" name="power" id="power" />
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="/Public/img/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />后台管理中心</h1>
  </div>
  <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;<a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red" href="/index.php/Home/Login/signOut" ><span class="icon-power-off"></span> 退出登录</a> </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
  <h2><span class="icon-user"></span>平台管理</h2>
  <ul style="display:block">
    <li><a href="/index.php/Home/Index/terrace" target="right"><span class="icon-caret-right"></span>平台信息</a></li>
    <li><a href="/index.php/Home/Index/newShop" target="right"><span class="icon-caret-right"></span>新进商家</a></li> 
    <li><a href="/index.php/Home/Index/shop" target="right"><span class="icon-caret-right"></span>商家管理</a></li>
    <li><a href="/index.php/Home/Index/user" target="right"><span class="icon-caret-right"></span>会员管理</a></li>
    <li><a href="/index.php/Home/Index/apply" target="right"><span class="icon-caret-right"></span>提现申请</a></li>
    <li><a href="/index.php/Home/Index/place" target="right"><span class="icon-caret-right"></span>地区管理</a></li>
    <li><a href="/index.php/Home/Index/cla" target="right"><span class="icon-caret-right"></span>商品分类</a></li>
    <li><a href="/index.php/Home/Index/pwd" target="right"><span class="icon-caret-right"></span>密码修改</a></li>
	<?php if($_SESSION['power'] == 0): ?><li><a href="/index.php/Home/Index/buy" target="right"><span class="icon-caret-right"></span>积分充值</a></li><?php endif; ?>
  </ul>
  <h2><span class="icon-pencil-square-o"></span>区域代理</h2>
  <ul>
    <li><a href="/index.php/Home/Index/areaProxy" target="right"><span class="icon-caret-right"></span>会员代理</a></li>
    <li><a href="/index.php/Home/Index/shopProxy" target="right"><span class="icon-caret-right"></span>商家代理</a></li>
  </ul>   
  <h2><span class="icon-pencil-square-o"></span>平台日志</h2>
  <ul>
    <li><a href="/index.php/Home/Index/shopNum" target="right"><span class="icon-caret-right"></span>商家记录</a></li>
    <li><a href="/index.php/Home/Index/userNum" target="right"><span class="icon-caret-right"></span>会员记录</a></li>
    <li><a href="/index.php/Home/Index/applyPay" target="right"><span class="icon-caret-right"></span>提现记录</a></li>
    <li><a href="/index.php/Home/Index/pay" target="right"><span class="icon-caret-right"></span>充值记录</a></li>
    <li><a href="/index.php/Home/Index/my_pay" target="right"><span class="icon-caret-right"></span>支付记录</a></li>
    <li><a href="/index.php/Home/Index/unit" target="right"><span class="icon-caret-right"></span>积分单元</a></li>
	<?php if($_SESSION['power'] == 0): ?><li><a href="/index.php/Home/Index/zsjf" target="right"><span class="icon-caret-right"></span>赠送积分</a></li><?php endif; ?>
    <li><a href="/index.php/Home/Index/adminLogs" target="right"><span class="icon-caret-right"></span>管理员日志</a></li> 
    <li><a href="/index.php/Home/Index/todayLogs" target="right"><span class="icon-caret-right"></span>今日日志</a></li>   
  </ul>

  <h2 id = "important"><span class="icon-pencil-square-o"></span>平台信息</h2>
  <ul id = "important1" >
    <li><a href="/index.php/Home/Index/setTerrace" target="right"><span class="icon-caret-right"></span>信息修改</a></li>
    <li><a href="/index.php/Home/Index/setAdmin" target="right"><span class="icon-caret-right"></span>增加管理员</a></li>
    <li><a href="/index.php/Home/Index/integralReturn" target="right"><span class="icon-caret-right"></span>自定义赠送积分比</a></li>
  </ul>
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<ul class="bread">
  <li><a href="<?php echo U('Index/info');?>" target="right" class="icon-home"> 首页</a></li>
  <li><a href="##" id="a_leader_txt">网站信息</a></li>
  <li><b>当前语言：</b><span style="color:red;">中文</php></span>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>
<div class="admin">
  <iframe scrolling="auto" rameborder="0" src="/index.php/Home/Index/terrace" name="right" width="100%" height="100%"></iframe>
</div>
</body>
</html>